<?php

namespace App\Http\Controllers\Api;

use Exception;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class HomeController extends ApiController
{
    public function index(): JsonResponse
    {
        try {
            return $this->success();
        } catch (Exception $e) {
            return $this->error($e);
        }
    }
}
